/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@font-face {
    font-family: '汉仪小麦体简';
    src: url('../img/HYXiaoMaiTiJ.ttf') ;
    font-weight: normal;
    font-style: normal;
}









/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


.fontHY{
    font-family: 汉仪小麦体简;
}

#quanping{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

/*******************************************************************/
/*                        toast                                    */
#toast_container{
    position: absolute;
    height:80px;
    width:440px;
    top:80px;
    background-color:  rgba(255,255,255,0.8);
    display: none;
    z-index: 100;
}

#toast_color_bar{
    height: 100%;
    width: 20px;
    background-color: #b3d4fc;
    float: left;
}

#toast_main{
    float:right;
    display: inline-block;
    width: 400px;
    height:70px;
    font-family: 'Microsoft Yahei';
    font-size:20px;
    font-weight: 600;
    padding-top:10px;
    padding-left:5px;
    padding-right:5px;
    overflow: hidden;
}



#copyright{
    font-family: 'Microsoft Yahei';
    position: absolute;
    bottom: 30px;
    right: 0%;
    text-align: center;
    font-size: 12px;
    color: #666666;
    width: 100%;
}


/********************************************************************/
/*                        screen 1                                  */

#screen1{
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 汉仪小麦体简;
}

#screen1_cover{
    position: absolute;
    width: 100%;
    height:100%;
    background-image: url('../img/backgroud1.jpg');
    background-repeat: round;
}
#welcome{
    margin: 40px 40px 40px 40px;
}
#loginpanel{
    position: absolute;
    top: 20%;
    right: 25%;
}
#registerpanel{
    position: absolute;
    top: 20%;
    right: 24%;
}
#msg,#errmsg{
    position:absolute;
    width:200px;
    height:32px;
    line-height:32px;
    left:120px;
    top:0;
    color:#f30;
    font-weight:bold
}
#panel1{
    margin-top: 100px;
    width: 600px;
    height: 350px;
    opacity: 1;
}
#login{
    padding: 10px 10px 10px 10px;
    width: 400px;
    margin-left: 40%;
}
#register{
    padding: 10px 10px 10px 10px;
    width: 400px;
    margin-left: 39%;
}
#nowstart{
    padding:10px 10px 10px 10px;
}
#introduce{
    height: 150px;;
}
#username{
    width: 250px;
    text-align: left;
}
#password{
    width: 250px;
    text-align: left;
}
#newname{
    width: 250px;
    text-align: left;
}
#email{
    width: 250px;
    text-align: left;
}
#newpassword{
    width: 250px;
    text-align: left;
}
#rnewpassword{
    width: 250px;
    text-align: left;
}

#login_btn{
    position: relative;
    right: 43%;
}
#LoginModalLabel{
    text-align: center;
}
#registerModalLabel{
    text-align: center;
}
#linshi{
    font-family: 宋体;
    margin-top: 10px;
}
/********************************************************************/
/*                        screen 2                                  */
#screen2{
    font-family: 汉仪小麦体简;
    visibility: hidden;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}
#screen2_cover{
    position:absolute;
    height:100%;
    width: 100%;
    top: 0;
    background: url('../img/backgroud2.jpg') center top no-repeat;
    background-size: cover;
    background-repeat: round;
}
#navbar1 {
    margin-left: 70%;
    padding-top: 5px;
}
#body2{
    width: 700px;
    height: 100px;
    margin-top: 100px;
    background-color: #ce8483;
    padding-top: 13px;
}

#main_panel{
    position: fixed;
    top: 30%;
    right: 20%;
    width: 60%;
}
.randnumber{
    font-size: 80px;
    text-align: center;
}
.fuhao{
    font-size: 80px;
    text-align: center;
}
#input1{
    outline: none;
    border-style:none;
    border-bottom-style:solid;
    border-bottom-color:black;
    padding-bottom: 17px;
    border:0;
    border-bottom:5px solid black;
    font-size: 80px;
    width: 100%;
    text-align: center;
}
#msg1{
    position:fixed;
    width:50%;
    height:32px;
    line-height:32px;
    left:25%;
    top: 55%;
    color:#f30;
    font-weight:bold;
    font-size: 30px;
    text-align: center;
}
#daojishi_panel{
    position: fixed;
    width: 40%;
    right: 30%;
    top: 60%;
}
#daojishi{
    text-align: center;
    font-size: 30px;
}
#helpinfo{
    text-align: left;
    font-size: 20px;
}
#identity{
    visibility: hidden;
}
#functionControl{
    margin: 80px;
}
#normal_Model{
    visibility: hidden;
}
#about{
    font-size: 20px;
}
/*****普通模式用的CSS*******/
#commonmode{
    width: 50%;
    position: fixed;
    top: 30%;
    right: 25%;
}
#number01,#number02,#fuhao0,#equal0,#number11,#number12,#fuhao1,#equal1,#number21,#number22,#fuhao2,#equal2,#number31,#number32,#fuhao3,#equal3,#number41,#number42,#fuhao4,#equal4{
    font-weight: 800;
    font-size: 25px;
    text-align: center;
}

#ipt1,#ipt2,#ipt3,#ipt4,#ipt5{
    outline:none;
    border-style:none;
    border-bottom-style:solid;
    border-bottom-width: medium;
    border-bottom-color:black;
    font-size: 25px;
    text-align: center;
    padding-top: 2px;
    font-weight: 800;
    margin-bottom: 20px;
}
.normal_input{
    text-align: center;
}
#message{
    font-weight: bold;
    font-size: medium;
}

/*杂项*/
.bdsharebuttonbox{
    position: relative;
    left: 60%;
}
.sharetext{
    font-family: 汉仪小麦体简;
    position: relative;
    left: 60%;
    font-size: large;
}
#banquan{
    font-size: medium;
}
#warning{
    font-size: medium;
}